export type TimeSlot = {
  dayOfWeek: number;
  start: string;
  end: string;
  room?: string;
  weeks?: number[];
  startWeek?: number;
  endWeek?: number;
};
export type Course = {
  id: string;
  name: string;
  teacherName: string;
  credit: number;
  capacity: number;
  enrolledCount: number;
  timeSlots: TimeSlot[];
};

export type Student = {
  id: string;
  name: string;
  college: string;
  major: string;
  clazz: string;
  studentNo: string;
  email?: string;
  phone?: string;
  grade?: string;
  selectedCount?: number;
  totalCredits?: number;
  requiredCredit?: number; // 本学期所需学分
};

export type Teacher = {
  id: string;
  name: string;
  college: string;
  account: string;
  title: string;
  email?: string;
  phone?: string;
  researchArea?: string;
  publishedPapers?: number;
  intro?: string;
};

export type Admin = {
  id: string;
  name: string;
  account: string;
  email?: string;
  phone?: string;
  lastLogin?: string;
};


